//
//  HttpTool.h
//  测试
//
//  Created by user on 16/5/14.
//  Copyright © 2016年 Burning. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MJExtension.h>


@interface HttpTool : NSObject
/**
 *  GET
 *
 *  @param url        url
 *  @param parameters 参数
 *  @param failure    success
 *  @param failure    failure
 */
+ (void)GET :(NSString *)url parameters :(id)parameters success :(void(^)(id responseObject))success failure:(void(^)(NSError *error))failure;

/**
 *  POST
 *
 *  @param url        url
 *  @param paramaters 参数
 *  @param success    success
 *  @param failure    failure
 */
+ (void)POST :(NSString *)url parameters :(id)paramaters success :(void(^)(id responseObject))success  failure :(void(^)(NSError *error))failure;
@end
